package com.xian.yoga.entity;

import java.util.ArrayList;
import java.util.List;

public class InterviewExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InterviewExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andInterviewIdIsNull() {
            addCriterion("interview_id is null");
            return (Criteria) this;
        }

        public Criteria andInterviewIdIsNotNull() {
            addCriterion("interview_id is not null");
            return (Criteria) this;
        }

        public Criteria andInterviewIdEqualTo(Integer value) {
            addCriterion("interview_id =", value, "interviewId");
            return (Criteria) this;
        }

        public Criteria andInterviewIdNotEqualTo(Integer value) {
            addCriterion("interview_id <>", value, "interviewId");
            return (Criteria) this;
        }

        public Criteria andInterviewIdGreaterThan(Integer value) {
            addCriterion("interview_id >", value, "interviewId");
            return (Criteria) this;
        }

        public Criteria andInterviewIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("interview_id >=", value, "interviewId");
            return (Criteria) this;
        }

        public Criteria andInterviewIdLessThan(Integer value) {
            addCriterion("interview_id <", value, "interviewId");
            return (Criteria) this;
        }

        public Criteria andInterviewIdLessThanOrEqualTo(Integer value) {
            addCriterion("interview_id <=", value, "interviewId");
            return (Criteria) this;
        }

        public Criteria andInterviewIdIn(List<Integer> values) {
            addCriterion("interview_id in", values, "interviewId");
            return (Criteria) this;
        }

        public Criteria andInterviewIdNotIn(List<Integer> values) {
            addCriterion("interview_id not in", values, "interviewId");
            return (Criteria) this;
        }

        public Criteria andInterviewIdBetween(Integer value1, Integer value2) {
            addCriterion("interview_id between", value1, value2, "interviewId");
            return (Criteria) this;
        }

        public Criteria andInterviewIdNotBetween(Integer value1, Integer value2) {
            addCriterion("interview_id not between", value1, value2, "interviewId");
            return (Criteria) this;
        }

        public Criteria andStudioNameIsNull() {
            addCriterion("studio_name is null");
            return (Criteria) this;
        }

        public Criteria andStudioNameIsNotNull() {
            addCriterion("studio_name is not null");
            return (Criteria) this;
        }

        public Criteria andStudioNameEqualTo(String value) {
            addCriterion("studio_name =", value, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameNotEqualTo(String value) {
            addCriterion("studio_name <>", value, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameGreaterThan(String value) {
            addCriterion("studio_name >", value, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameGreaterThanOrEqualTo(String value) {
            addCriterion("studio_name >=", value, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameLessThan(String value) {
            addCriterion("studio_name <", value, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameLessThanOrEqualTo(String value) {
            addCriterion("studio_name <=", value, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameLike(String value) {
            addCriterion("studio_name like", value, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameNotLike(String value) {
            addCriterion("studio_name not like", value, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameIn(List<String> values) {
            addCriterion("studio_name in", values, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameNotIn(List<String> values) {
            addCriterion("studio_name not in", values, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameBetween(String value1, String value2) {
            addCriterion("studio_name between", value1, value2, "studioName");
            return (Criteria) this;
        }

        public Criteria andStudioNameNotBetween(String value1, String value2) {
            addCriterion("studio_name not between", value1, value2, "studioName");
            return (Criteria) this;
        }

        public Criteria andCoachNameIsNull() {
            addCriterion("coach_name is null");
            return (Criteria) this;
        }

        public Criteria andCoachNameIsNotNull() {
            addCriterion("coach_name is not null");
            return (Criteria) this;
        }

        public Criteria andCoachNameEqualTo(String value) {
            addCriterion("coach_name =", value, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameNotEqualTo(String value) {
            addCriterion("coach_name <>", value, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameGreaterThan(String value) {
            addCriterion("coach_name >", value, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameGreaterThanOrEqualTo(String value) {
            addCriterion("coach_name >=", value, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameLessThan(String value) {
            addCriterion("coach_name <", value, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameLessThanOrEqualTo(String value) {
            addCriterion("coach_name <=", value, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameLike(String value) {
            addCriterion("coach_name like", value, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameNotLike(String value) {
            addCriterion("coach_name not like", value, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameIn(List<String> values) {
            addCriterion("coach_name in", values, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameNotIn(List<String> values) {
            addCriterion("coach_name not in", values, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameBetween(String value1, String value2) {
            addCriterion("coach_name between", value1, value2, "coachName");
            return (Criteria) this;
        }

        public Criteria andCoachNameNotBetween(String value1, String value2) {
            addCriterion("coach_name not between", value1, value2, "coachName");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoIsNull() {
            addCriterion("interview_info is null");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoIsNotNull() {
            addCriterion("interview_info is not null");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoEqualTo(String value) {
            addCriterion("interview_info =", value, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoNotEqualTo(String value) {
            addCriterion("interview_info <>", value, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoGreaterThan(String value) {
            addCriterion("interview_info >", value, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoGreaterThanOrEqualTo(String value) {
            addCriterion("interview_info >=", value, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoLessThan(String value) {
            addCriterion("interview_info <", value, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoLessThanOrEqualTo(String value) {
            addCriterion("interview_info <=", value, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoLike(String value) {
            addCriterion("interview_info like", value, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoNotLike(String value) {
            addCriterion("interview_info not like", value, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoIn(List<String> values) {
            addCriterion("interview_info in", values, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoNotIn(List<String> values) {
            addCriterion("interview_info not in", values, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoBetween(String value1, String value2) {
            addCriterion("interview_info between", value1, value2, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewInfoNotBetween(String value1, String value2) {
            addCriterion("interview_info not between", value1, value2, "interviewInfo");
            return (Criteria) this;
        }

        public Criteria andInterviewResultIsNull() {
            addCriterion("Interview_result is null");
            return (Criteria) this;
        }

        public Criteria andInterviewResultIsNotNull() {
            addCriterion("Interview_result is not null");
            return (Criteria) this;
        }

        public Criteria andInterviewResultEqualTo(String value) {
            addCriterion("Interview_result =", value, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultNotEqualTo(String value) {
            addCriterion("Interview_result <>", value, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultGreaterThan(String value) {
            addCriterion("Interview_result >", value, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultGreaterThanOrEqualTo(String value) {
            addCriterion("Interview_result >=", value, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultLessThan(String value) {
            addCriterion("Interview_result <", value, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultLessThanOrEqualTo(String value) {
            addCriterion("Interview_result <=", value, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultLike(String value) {
            addCriterion("Interview_result like", value, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultNotLike(String value) {
            addCriterion("Interview_result not like", value, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultIn(List<String> values) {
            addCriterion("Interview_result in", values, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultNotIn(List<String> values) {
            addCriterion("Interview_result not in", values, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultBetween(String value1, String value2) {
            addCriterion("Interview_result between", value1, value2, "interviewResult");
            return (Criteria) this;
        }

        public Criteria andInterviewResultNotBetween(String value1, String value2) {
            addCriterion("Interview_result not between", value1, value2, "interviewResult");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}